home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / com3_4.zip / COM3&4.DOC < prev    next >
Text File  |  1988-12-09  |  7KB  |  166 lines

  1.  
  2. You can have up to two serial ports on your I/O Card.  These 
  3. serial ports support asychronous communication functions.
  4. And, these ports can be set to COM1, COM2, COM3 or COM4.
  5.  
  6. The current release of PC or MS DOS recognizes COM1 and COM2.
  7. Therefore, the current PC DOS (MS- DOS) only performs I/O  
  8. functions COM1 and COM2.  Unfortunately, DOS can not recoginze
  9. COM3 or COM4;i.e., input and output operations can not be    
  10. performed by using COM3 or COM4.
  11.  
  12. Two new serial port utilities enable COM3 and COM4 to perform
  13. the same functions as COM1 and COM2.  One is DEVCOM.SYS, a driver.
  14. The other is CMODE.COM, a utility program.
  15.  
  16.  
  17. 1.   DEVCOM
  18.     
  19.      DEVCOM is a device driver that initializes two devices,
  20.      COM3 and COM4, for serial ports on your I/O Card.  After
  21.      DEVCOM has been executed, you can gain access to these
  22.      serial ports by simply entering the names COM3 and COM4.
  23.  
  24.      Before starting DEVCOM, please set your I/O Card's serial
  25.      ports to COM3 and COM4.  If the system fails to set these
  26.      COM ports, the following message will appear on the screen:
  27.  
  28.      Can not find device COM n
  29.  
  30.      To execute DEVCOM, you must copy the DEVCOM utility onto
  31.      your current working drive or DOS diskette.  The utility is     
  32.      entitled, DEVCOM.SYS.  This device driver sets the COM
  33.      parameters into the memory reserved for the operating system's
  34.      data and gives you the interface between DOS and BIOS.  The
  35.      DEVCOM.SYS utility must be set into your CONFIG.SYS device.
  36.      If your boot diskette or current working drive has a            
  37.      CONFIG.SYS device, please add the following command:
  38.  
  39.     DEVICE = DEVCOM.SYS
  40.  
  41.      If your boot diskette or current working drive does not have
  42.      a CONFIG.SYS device, create one which includes the previous
  43.      command.
  44.  
  45.      With your amended current working DOS diskette in the current
  46.      working driver, reset the system.  You can reset the system by
  47.      pressing the RESET buttom; simultaneously pressing CTRL, ALT
  48.      and DEL; or turning the power off and on.  If COM3 or COM4 ports
  49.      exist, then the following messages will appear on the screen:
  50.  
  51.     Device COM3 is installed.
  52.     Parameters set to 2400, n, 8, 1
  53.     Device COM4 is installed.
  54.     Parameters set to 2400, n, 8, 1
  55.  
  56.      NOTE: A DEVCOM DEFAULT SETS COM3 AND COM4 COMMUNICATION
  57.            PARAMETERS TO BAUD RATE 2400, NO PARITY, 8 DATA BITS 
  58.            AND 1 STOP BIT.
  59.  
  60.      If COM3 and COM4 ports do not exist, then the following
  61.      messages will appear on the screen:
  62.  
  63.     Can not find device COM3.
  64.     Can not find device COM4.
  65.  
  66.      NOTE: WHEN USING PC/MS DOS VERSION 3.3+, THE DEVICE DRIVER ALONE IS
  67.            SUFFICIENT AND THE DOS MODE COMMAND CAN BE USED TO SET ALL THE
  68.            SERIAL PORT OPTIONS AS NORMAL, EXCEPT A BAUD RATE OF 19,200.
  69.            HOWEVER A 19,200 BAUD RATE CAN BE SET USING THE CMODE.COM.
  70.  
  71.  
  72. 2.   CMODE COMMAND
  73.  
  74.      The utility programm, CMODE.COM, sets options for an
  75.      asynchronous communications adapter.  The CMODE.COM also
  76.      enables printer output to be routed to an asynchronous
  77.      communications adapter or to another printer port. 
  78.  
  79.  
  80. 2.1  Setting Parameters
  81.  
  82.      The command format for setting the options of an asynchronous
  83.      communications adapter is listed below.
  84.  
  85.     CMODE COMn:baud[,parity[,data bits[,stop bits[,p]]]]
  86.           
  87.      The variable "n" can be 1, 2, 3 or 4 designating the number 
  88.      of the asynchronous communications adapter.
  89.  
  90.      The protocol parameters used to initialize the asynchronous
  91.      communications adapter can be set by replacing the "[" symbols
  92.      with specific characters.  These parameters and the specific 
  93.      characters are listed below.
  94.  
  95.     Baud Rate: Enter 50, 75, 110, 134.5, 150, 300, 600, 1200,
  96.                    1800, 2000, 2400, 3600, 4800, 7200, 9600, or 19200.
  97.  
  98.                    The default setting is 2400.
  99.  
  100.      NOTE: ONLY THE FIRST TWO CHARACTERS ARE REQUIRED, SUBSEQUENT
  101.            CHARACTERS ARE IGNORED.  FOR EXAMPLE, IF THE COMMAND
  102.            FORMAT WAS "CMODE COM3: 13,7", THE MODE OF OPERATION
  103.            WOULD BE 134.5 BAUD RATE, EVEN PARITY AND STOPBIT
  104.            PARAMETERS WOULD DEFAULT SINCE NO CHARACTERS WERE ENTERED.
  105.  
  106.     Parity:        Enter N (None), O (Odd), E (Even), M (Mark),
  107.                         or S (Space).
  108.                          
  109.                         The default setting is E.
  110.  
  111.     Databits:    Enter 5, 6, 7 or 8.
  112.  
  113.             The default setting is 7.
  114.  
  115.     Stopbits:    Enter either 1 or 2.
  116.  
  117.             The default setting is 2 if the baud rate
  118.                         is less than or equal to 110.
  119.  
  120.                         The default setting is 1 if the baud rate
  121.                         is greater than 110.
  122.  
  123.      The "P" option indicates that the asynchronous adapter is 
  124.      being used for a serial interface printer.  If you enter the 
  125.      "P", time-out errors are continously retried.  You can stop
  126.      the retry loop by pressing Ctrl-Break.  To stop the time-out
  127.      errors from being continously retried when you have entered     
  128.      "P", you must reinitialize the asynchronous adapter without
  129.      entering the "P".
  130.  
  131.  
  132. 2.2  Routing Printer Output
  133.  
  134.      The command formats for directing parllel printer output to   
  135.      an asynchronous communications adapter or to another printer
  136.      are listed below.
  137.  
  138.     CMODE LPT#: = COMn
  139.  
  140.     CMODE LPT#: = LPT$
  141.  
  142.      There are three variables in this command format.  The variable
  143.      "#" can be 1, 2, or 3 designating the printer port number.  The
  144.      variable "n" can be 1, 2, 3 or 4 designating the asynchronous
  145.      communications adapter.  And, the variable "$" can be 1, 2, or
  146.      3 designating another printer port.
  147.  
  148.      All output direct to the printer LPT# is redirected to the
  149.      asynchronous adapter n, or to another printer $.  Another format,
  150.      CMODE LPT#: =LPT#, disables any redirection to the printer
  151.      designated by the "#".
  152.  
  153.      Before you can use the CMODE to redirect the parallel printer
  154.      output to a serial device, you must initialize the asynchronous
  155.      communications adapter by using the CMODE COMn format described 
  156.      in Section 2.1 Setting Parameters.  If that serial device is a
  157.      printer, your seial initialization command should also include
  158.      the "P" parameter.
  159.  
  160.              
  161.      NOTE: WHEN USED IN THE CMODE COMn FORMAT WITH THE "P" OPTION, OR
  162.            IN THE CMODE LPT#: = COMn OR CMODE LPT#: = LPT$, THE CMODE 
  163.            COMMAND CAUSES THE PRINTER AND ASYNCHRONOUS COMMUNICATIONS
  164.            ADAPTER INTERCEPT CODE TO BE MADE RESIDENT IN MEMORY.
  165.  
  166.